package com.itheima.demo06.StaticMethodReference;

public class Demo01StaticMethodReference {
    public static void main(String[] args) {
        int number1 = method(-10, n -> Math.abs(n));
        int number2 = method(-10, Math::abs);

        System.out.println(number1);
        System.out.println(number2);
    }

    public static int method(int number, Calcable c) {
        return c.calAbs(number);
    }
}
